package com.whw.fy.controller;

import com.whw.fy.entity.Message;
import com.whw.fy.service.CriticalTimeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "小程序关键时间模块")
@RestController
@RequestMapping("/api/CriticalTime")
public class CriticalTimeController {
    @Resource
    private CriticalTimeService criticalTimeService;

    @ApiOperation(value = "小程序根据班级id和上次次数获得关键时间")
    @GetMapping("/one")
    public Message selectByClassIdAndSkcd(int classId,int skcd){
        return criticalTimeService.selectByClassIdAndSkcd(classId, skcd);
    }

}
